<script setup lang="ts">
import { ESButton, messageBox } from "earthsdk-ui";

const handleDelete = () => {
  messageBox({
    title: "提示",
    text: "您确认要删除吗?",
    cancelButtonText: "取消",
    confirmButtonText: "确定",
    showCancelButton: true,
    showIcon: true,
  })
    .then(() => {
      console.log("确认");
    })
    .catch((err) => {
      console.log("取消");
      console.log(err);
    });
};
</script>

<template>
  <BlockBox text="窗口测试">
    <ESButton @click="handleDelete()">弹出</ESButton>
  </BlockBox>
</template>

<style scoped></style>
